<?php
/**
 * Created by PhpStorm.
 * User: Sojo
 * Date: 2017/5/31
 * Time: 17:36
 */
namespace App\Api\Service\OSS\Controllers;

use Framework\BaseClass\Api\Controller;
use Framework\Services\OSS\Aliyun\AliyunService;

class AliyunController extends Controller
{
    public function uploadFileByKindEditor()
    {
        $params = $this->verifyParams(['filename', 'filePath']);

        $oss = new AliyunService();
        $path = $oss->uploadFile($params['filename'], $params['filePath'], false);

        return $path;
    }
}